# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see site: http://code.google.com/p/spyderlib
#      file: spyderlib/__init__.py for details)

import os

_modname = os.environ.setdefault('QT_API', 'pyside')
_api_version = int(os.environ.setdefault('QT_API_VERSION', '0'))

if _modname == 'pyside':
  try:
    import PySide
    __version__ = PySide.__version__
  except ImportError:
    raise ImportError("PySide required")
else :
  raise ImportError("PySide required")
